package com.fw.system.web.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户答题情况表
 * </p>
 *
 * @author ${author}
 * @since 2023-03-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="TbUserResult对象", description="用户答题情况表")
public class TbUserResult extends Model<TbUserResult> {

    private static final long serialVersionUID = 1L;

    @TableField("id")
    private String id;

    @TableField("user_id")
    private String userId;

    @ApiModelProperty(value = "题目编号")
    @TableField("answer_id")
    private String answerId;

    @ApiModelProperty(value = "用户答案")
    @TableField("user_result")
    private String userResult;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;


    @Override
    protected Serializable pkVal() {
        return null;
    }

}
